{% extends "timeline.html" %}

{% block title %}The Living History: {{timeline.name}} revisions{% endblock %}

{% block mainheadline %}{{timeline.name}} revisions{% endblock %}

{% block display %}

	<form name="compareRevs" action="compare" method="GET">
	<input type="Submit" value="Compare revisions">
	<table border=1>
	<tr><th></th><th></th><th>Timestamp</th><th>User</th><th>Comment</th></tr>
	  {% for rev in revisions %}
	    <tr>
		  <td>{% if not forloop.first %}<input type="Radio" name="oldrev" value="{{rev.key}}">{% endif %}</td>
		  <td>{% if not forloop.last %}<input type="Radio" name="newrev" value="{{rev.key}}">{% endif %}</td>
		  <td><a href="/timeline/{{timeline.name}}?rev={{rev.key}}">{{rev.rev_timestamp|date:"Y-m-d H:i:s"}}</a></td>
		  <td>{{rev.rev_user}}</td>
		  <td>{{rev.rev_comment}}</td>
	    </tr>
	  {% endfor %}
	</table>
{% endblock %}